﻿using UnityEngine;
using System;

public class NewBehaviourScript1 : MonoBehaviour {

	// Use this for initialization
	void Start () {
	
	}
	
	// Update is called once per frame
	void Update	()	{	
	GameObject Object = GameObject.Find("Sprite_Perso");
	float x = Object.transform.position.x;	
	
	GameObject Object1 = GameObject.Find("Main Camera");
	float x1 = Object1.transform.position.x;
		
	transform.Translate(x-x1,0,0);
	
	//transform.LookAt(new vector3(x,0,0));
		
	}	
}
